import React from 'react';
import { ExclamationCircleFilled } from '@ant-design/icons';
import styles from './index.less';

interface WarningAlertProps {
  text: any;
}

const WarningAlert: React.FC<WarningAlertProps> = ({ text }) => {
  return (
    <div className={styles.tip}>
      <ExclamationCircleFilled />
      {text}
    </div>
  );
};

export default WarningAlert;
